package com.wujilee.dbredissyn.service;

import com.wujilee.dbredissyn.common.ServiceResult;
import com.wujilee.dbredissyn.common.redis.RedisFunction;

import java.util.function.Function;

/**
 * @author liwuji
 * @date 2024/5/14
 * @desc
 **/
public interface RedisSynService {

    <T> T getValue(String prefix,String id, Class<T> tClass);
    <T> T getValue(String prefix, String id, Class<T> tClass, RedisFunction<T> function );

    void deleteValue(String prefix, String id);
    <T> void  putValue(String prefix,String id,T t, long time);
    
}
